package com.ruoyi.redtea.dualprevent.service;

import com.ruoyi.redtea.dualprevent.domain.bo.TrainUserInfoBo;
import com.ruoyi.redtea.dualprevent.domain.entity.TrainDept;
import com.ruoyi.redtea.dualprevent.domain.entity.TrainDeptUser;
import com.ruoyi.redtea.dualprevent.domain.entity.TrainUser;
import com.ruoyi.redtea.dualprevent.domain.vo.TrainUserInfoVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * (TrainUser)表服务接口
 *
 * @author makejava
 * @since 2024-05-14 09:39:47
 */
public interface TrainUserInfoService {
    boolean insertUser(TrainUser trainUser);
    boolean updateUser(TrainUser trainUser);

    boolean insertDept(TrainDept trainDept);
    boolean updateDept(TrainDept trainDept);

    @Transactional(rollbackFor = Exception.class)
    boolean insertUserInfo(TrainUserInfoBo trainUserInfoBo);
    boolean updateUserInfo(TrainUserInfoBo trainUserInfoBo);

    boolean insertDeptUser(TrainDeptUser trainDeptUser);
    boolean updateDeptUser(TrainDeptUser trainDeptUser);

    List<TrainUserInfoVo> selectList();

    TrainUserInfoVo queryUserInfoById(Long id);

}

